<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>支付结果</title>
    <style type="text/css">
        .main{

            margin: 0 auto;
            margin-top: 50px;
            text-align: center;
            font-size: 50px;
        }
        .main div{
            margin-bottom: 30px;
        }
        .icon{

        }
        .bottom{
            width: 100%;
            height: 100px;
            position: absolute;
            bottom: 40px;
        }
        #toUser{
            border: 3px solid deepskyblue;
            color: deepskyblue;
            margin: 0 auto;
            height: 80px;
            line-height: 80px;
            width: 250px;
        }
    </style>
</head>
<body>
<div class="main">
    <div class="icon">
        <img src="/curse/paySuccess.jpg" />
    </div>
    <div> 订单支付成功，请在影片播放前30分钟取票，影片播放30分钟后不予退款</div>
    <div class="pay-amount" >
        支付金额:<sapn th:text="${totalAmount}">0.0</sapn>元
    </div>

    <div class="bottom">
        <div id="toUser">订单</div>
    </div>
</div>
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
<script type="text/javascript">
    document.addEventListener('UniAppJSBridgeReady', function() {
        document.getElementById("toUser").addEventListener("click",function () {
            console.log("准备前往订单");
            uni.switchTab({
                url:'/pages/tabBar/cart/order_list'
            })
        })
        uni.getEnv(function(res) {
            console.log('当前环境：' + JSON.stringify(res));
        });
    });
</script>
</body>
</html>
